package com.lasertd.screens;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.math.Vector2;
import com.lasertd.model.Area;
import com.lasertd.view.AreaRenderer;

public class GameScreen implements Screen {

	private Area area;
	private AreaRenderer areaRenderer;
	
	@Override
	public void render(float delta) {
		Gdx.gl.glClearColor(0.1f, 0.1f, 0.1f, 0.1f);
		Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
		
		this.areaRenderer.render();
	}

	@Override
	public void resize(int width, int height) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void show() {
		this.area = new Area();
		this.area.createBorder();
		this.area.createRandomPath(new Vector2(2, 0), new Vector2(13, 15));
		this.areaRenderer = new AreaRenderer(this.area);
		
	}

	@Override
	public void hide() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void pause() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void resume() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void dispose() {
		// TODO Auto-generated method stub
		
	}

}
